package com.ibeetl.admin.aod.service.excel.match;

import com.ibeetl.admin.aod.web.query.FilterQuery;
import org.springframework.web.multipart.MultipartFile;

import java.io.File;
import java.util.List;

/**
 * 匹配的管理类
 * @author caobingbing
 */
public interface MatchManager {

    /**
     * 两个CSV文件匹配
     * @param fileList
     */
    void matchTwoFile(String batchNo, List<File> fileList);


    /**
     * 两个CSV文件匹配
     * @param fileList
     */
    void matchTwoFile2DB(String batchNo, List<File> fileList);

    /**
     * 通过CSV文件筛选
     * @param file
     */
    void matchByCsv(File file, FilterQuery filterQuery, String batchNo);

    /**
     * 通道DB筛选
     */
    void matchByDB(FilterQuery filterQuery, String batchNo);

    List<File> convertMultipartFileList2FileList(List<MultipartFile> multipartFiles) throws Exception;

    File convertMultipartFile2File(String saveFilePath, MultipartFile multipartFile) throws Exception;
}
